package com.commerce.mapping;

import com.commerce.model.AD;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;

@Mapper
public interface ADMapping extends BeanMapping<AD>{

    /**
     * 开启或关闭
     * @param id
     * @return
     * @throws DataAccessException
     */
    int updateByOpen(int id)throws DataAccessException;
}
